﻿#region License statement
// NJamb, a specification and delta-specification DSL
// Copyright (c) 2010-2011, Mark Knell
// Published under the MIT License; all other rights reserved
#endregion

#region using...
using NJamb.Parser.SpecificationBuilders.Delta;
using NJamb.Specifications.Delta;
#endregion

namespace NJamb.Specifications.Simple
{
    public static class SimpleSpecificationExtensions
    {
        public static IDeltaSpecification Always<TSubject, TDeltaSpecificationBuilder>(
            this ISimpleSpecification<TSubject, TDeltaSpecificationBuilder> simpleSpecification)
            where TDeltaSpecificationBuilder : class, IDeltaSpecificationBuilder
        {
            return new DeltaSpecification<TSubject>(simpleSpecification, simpleSpecification);
        }
    }
}
